<div class="ablum">
    <div class="history container-fluid">
        <div class="history-date">
            <ul>
                <h2 class="first">
                    <a href="#nogo">2015年</a> 这一年，我继续着自己的程序生涯...
                </h2>
                <li class="green">
                    <h3>05月30日<span>2015</span></h3>
                    <dl>
                        <dt>浙江<span>徽杭 古道</span></dt>
                    </dl>
                    <dl>
                        <dt><img src="../../data/ablum/2015/zj-hxgd/P1160331.JPG" data-action="zoom" style="height:200px;weight:200px"/>
                        <img src="../../data/ablum/2015/zj-hxgd/P1160354.JPG" data-action="zoom" style="height:200px;weight:200px"/>
                        <img src="../../data/ablum/2015/zj-hxgd/P1160355.JPG" data-action="zoom" style="height:200px;weight:200px"/>
                        <img src="../../data/ablum/2015/zj-hxgd/P1160356.JPG" data-action="zoom" style="height:200px;weight:200px"/>
                        </dt>
                        <dt>
                        <img src="../../data/ablum/2015/zj-hxgd/P1160388.JPG" data-action="zoom" style="height:200px;weight:200px"/>
                        </dt>
                        
                    </dl>
                </li>
                <li>
                    <h3>07.19<span>2012</span></h3>
                    <dl>
                        <dt>浙江<span>乌镇</span></dt>
                        <A href="http://html5test.com/" target="_blank">乌镇</A>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="history-date">
            <ul>
                <h2 class="date02"><a href="#nogo">2014年</a></h2>
                <li>
                    <h3>10月16日<span>US California</span></h3>
                    <dl>
                        <dt><span>金门大桥</span></dt>
                    </dl>
                </li>
                <li class="green">
                    <h3>10月16日<span>内华达</span></h3>
                    <dl>
                        <dt>Taho湖</span></dt>
                    </dl>
                </li>
                
            </ul>
        </div>

        <div class="history-date">
            <ul>
                <h2 class="date02"><a href="#nogo">2013年</a></h2>
                <li>
                    <h3>12月13日<span>2013</span></h3>
                    <dl>
                        <dt>浙江<span>扬州</span></dt>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function(){
	systole();
    });
    function systole(){
	if(!$(".history").length){
		return;
	}
	var $warpEle = $(".history-date"),
		$targetA = $warpEle.find("h2 a,ul li dl dt a"),
		parentH,
		eleTop = [];
	
	parentH = $warpEle.parent().height();
	$warpEle.parent().css({"height":59});
	
	setTimeout(function(){
		
		$warpEle.find("ul").children(":not('h2:first')").each(function(idx){
			eleTop.push($(this).position().top);
			$(this).css({"margin-top":-eleTop[idx]}).children().hide();
		}).animate({"margin-top":0}, 1600).children().fadeIn();

		$warpEle.parent().animate({"height":parentH}, 2600);

		$warpEle.find("ul").children(":not('h2:first')").addClass("bounceInDown").css({"-webkit-animation-duration":"2s","-webkit-animation-delay":"0","-webkit-animation-timing-function":"ease","-webkit-animation-fill-mode":"both"}).end().children("h2").css({"position":"relative"});
		
	}, 600);

	$targetA.click(function(){
		$(this).parent().css({"position":"relative"});
		$(this).parent().siblings().slideToggle();
		$warpEle.parent().removeAttr("style");
		return false;
	});
    };
</script>